#include <LitExport.hpp>

#ifndef __LIT__TIMER__INCLUDED__HH__
#define __LIT__TIMER__INCLUDED__HH__

#include <time.h>       /* clock_t, clock, CLOCKS_PER_SEC */

namespace Lit
{
		struct LIT_API Timer
		{
			typedef clock_t Traits;
		
			Timer();
			Timer( const Timer& rk );
			virtual ~Timer();

			Timer& operator=( const Timer& rk );

			Traits start();
			Traits stop();

			Traits elapsedMSec() const;
			float elapsedSec() const;

		protected:
			Traits mStart;
			Traits mStop;

		};
	};
#endif